#!/usr/bin/env python
# coding: utf-8
# Date  : 2018-08-28 13:40:08
# Author: dazhong
# Email : 88350676@qq.com
# Func  :
import os
BASE_DIR =os.path.abspath(os.path.dirname(__file__))
class Config(object):
    SECRET_KEY='@#$%(afjiajei^&*fj'
    SQLALCHEMY_DATABASE_URI= 'sqlite:///' + os.path.join(BASE_DIR,'app.db')
    SQLALCHEMY_TRACK_MODIFICATIONS = False
    SCHEDULER_API_ENABLED = True
    JOBS = [
        {
            'id': 'myjob',
            'func': 'app.task.data_task:gen_data',
            'args': None,
            'trigger': 'interval',
            'max_instances':10,
            'seconds': 5
        }
    ]

